<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="/bigjo/js/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="/bigjo/css/eboard.css">
<title>EVENT</title>
</head>

<script type="text/javascript">
	jQuery.noConflict();
	jQuery(document).ready(
			function() {
				jQuery("#ebdelete").click(
						function() {
							var idx = document.URL.indexOf("bigjo");
							var str = document.URL.substring(0, idx + 5);
							var eb_no = jQuery(".eb_no").attr("id");
							var eb_title = jQuery(".eb_title").attr("id");

							document.location.href = str
									+ "/eboarddelete.eboard?delete=" + eb_no
									+ "&eb_title=" + eb_title;

						});
			});
</script>

<body>
	<jsp:include page="/upMenu.main"></jsp:include>
	<div id="eboarddetail" align="center">

		<table border="1" style="width: 700px">
			<thead>
				<tr>
					<th align="center" colspan="6">상세 게시판</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td align="center">번호</td>
					<td align="left" class="eb_no" id="${eboarddetail.eb_no}">
						${eboarddetail.eb_no} 번</td>
				</tr>
				<tr>
					<td align="center">조회수</td>
					<td align="left">${eboarddetail.eb_count}</td>
				</tr>
				<tr>
					<td align="center">제목</td>
					<td align="left">${eboarddetail.eb_title}</td>
				</tr>

				<tr>
					<td align="center">내용</td>
					<td align="left">${eboarddetail.eb_context}</td>
				</tr>

			</tbody>
		</table>
		<c:choose>
			<c:when test="${sessionScope.member == 'music1' }">
				<a href="/bigjo/eboardupdatelist.eboard?eb_no=${eboarddetail.eb_no}&eb_context=${eboarddetail.eb_context}"><input type="button" value="수정"></a>
				<input type="button" name="ebdelete" id="ebdelete" value="삭제">
			</c:when>
		</c:choose>
		<a href="eboardmain.eboard"><input type="submit"
					name="eboardinsertcancel" id="eboardinsertcancel" value="목록으로"></a>
	</div>
</body>
</html>